#include <QCoreApplication>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    printf("Vvedite chisla: ");
    int b,c;
    scanf("%d %d", &b,&c);
    if(b != c)
    {
        b=b+c;
        c=b;
    }
    else
    {
        b=0;
        c=0;
    }
    printf("%d %d", b,c);


    return 0;
}
